#!/usr/bin/env python
#! encoding=utf-8

from enum import IntEnum

DEFAULT_REQUEST_TIMEOUT = 10
DEFAULT_REQUEST_TIMEOUT_MAX = 60

FETCH_MAX_ROW = 1000

SWAP_TOKEN_PREFIX = 'ERC20.'

MAX_SWAP_ASSET_DECIMAL = 8

MIN_FEE_FOR_ETP_DEVELOPER_COMMUNITY = 0  # 0 ETP


class TokenType(IntEnum):
    Unknown = -1
    Etp = 0
    Mst = 1


class Status(IntEnum):
    Swap_Swap = 0
    Swap_Return = 1
    Swap_Finish = 2
    Swap_Ban = 10

    Tx_Unconfirm = 0
    Tx_Confirm = 1
    Tx_Unchecked = 2
    Tx_Checked = 3
    Tx_Ban = 4


class Error(IntEnum):
    Success = 0
